How did the completion of transcontinental railroads affect the economy?